﻿
using AutoMapper;
using BCCommon;
using BCCommon.Enums;
using BCDto.Sim.Admin.AdminAuth;
using BCEntity.Sim.Admin.AdminAuth;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.MapperProfiles.Sim.Admin
{
    public class AdminAuthProfile : Profile
    {
        public AdminAuthProfile()
        {

            //员工授权信息
            CreateMap<AdminAuthDto, AdminAuthEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminAuthRequestDto, AdminAuthPutDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminAuthRequestDto, AdminAuthEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminAuthPutDto, AdminAuthEntity>().IgnoreAllPropertiesWithAnInaccessibleSetter();
            CreateMap<AdminAuthEntity, AdminAuthDto>().IgnoreAllPropertiesWithAnInaccessibleSetter();

        }
    }
}